<!--
 * @FilePath     : /study_code/layui/19-1-6.html
 * @Description  : tree 实例对象
 * @Date         : 2025-04-13 09:16:16
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-13 09:17:26
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
  </head>
  <body>
    <div id="demo"></div>

    <script src="/layui/dist/layui.js"></script>
    <script src="/layui/layui-treetable/common.js"></script>
    <script>
      layui
        .config({
          base: '/layui/extends_modules',
        })
        .extend({
          treetable: '/layui-treetable/treetable',
        })
        .use(['form', 'treetable', 'layer'], function () {
          var layer = layui.layer,
            form = layui.form,
            $ = layui.jquery,
            treetable = layui.treetable

          var tree = layui.treetable({
            elem,
            spreadable,
            checkbox,
            layout,
            nodes,
          })

          console.log(1, 'tree 实例对象', tree)

          form.render()
        })
    </script>
  </body>
</html>
